package com.ece.friendly.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ece.friendly.dao.FriendDao;
import com.ece.friendly.model.Friend;

@Service
public class FriendServiceImp implements FriendService{


	@Autowired
	private FriendDao friendDao;
	
	@Override
	public Friend getFriend(String login, String password) {
		return friendDao.getFriend(login, password);
	}

	@Override
	public boolean addFriend(String login, String password, String name,String firstname, String address, String city, String country) {
		return friendDao.addFriend(login, password, name, firstname, address, city, country);
	}

	@Override
	public Friend getFriend(String login) {
		// TODO Auto-generated method stub
		return friendDao.getFriend(login);
	}

	
}
